<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::SVMTrain类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1_s_v_m_train.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="#pro-attribs">Protected 属性</a> &#124;
<a href="classpcl_1_1_s_v_m_train-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::SVMTrain类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="classpcl_1_1_s_v_m.html" title="Base class for SVM SVM (Support Vector Machines).">SVM</a> (Support Vector Machines) training class for the <a class="el" href="classpcl_1_1_s_v_m.html" title="Base class for SVM SVM (Support Vector Machines).">SVM</a> machine learning. It creates a model for the classifier from a labelled input dataset. OPTIONAL: <a class="el" href="structpcl_1_1_s_v_m_param.html" title="The structure stores the parameters for the classificationa nd must be initialized and passed to the ...">pcl::SVMParam</a> has to be given as input to vary the default training method and parameters.  
 <a href="classpcl_1_1_s_v_m_train.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="svm__wrapper_8h_source.html">svm_wrapper.h</a>&gt;</code></p>
<div class="dynheader">
类 pcl::SVMTrain 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classpcl_1_1_s_v_m_train.png" usemap="#pcl::SVMTrain_map" alt=""/>
  <map id="pcl::SVMTrain_map" name="pcl::SVMTrain_map">
<area href="classpcl_1_1_s_v_m.html" title="Base class for SVM SVM (Support Vector Machines)." alt="pcl::SVM" shape="rect" coords="0,0,92,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:af958b338c84171fbc044b271561a66ef"><td class="memItemLeft" align="right" valign="top"><a id="af958b338c84171fbc044b271561a66ef"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m_train.html#af958b338c84171fbc044b271561a66ef">SVMTrain</a> ()</td></tr>
<tr class="memdesc:af958b338c84171fbc044b271561a66ef"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
<tr class="separator:af958b338c84171fbc044b271561a66ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4d3043d078eda40c1ced194ec6ef89df"><td class="memItemLeft" align="right" valign="top"><a id="a4d3043d078eda40c1ced194ec6ef89df"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m_train.html#a4d3043d078eda40c1ced194ec6ef89df">~SVMTrain</a> ()</td></tr>
<tr class="memdesc:a4d3043d078eda40c1ced194ec6ef89df"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a4d3043d078eda40c1ced194ec6ef89df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac032e2dc6d89909d72aebc5cb46806f8"><td class="memItemLeft" align="right" valign="top"><a id="ac032e2dc6d89909d72aebc5cb46806f8"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m_train.html#ac032e2dc6d89909d72aebc5cb46806f8">setParameters</a> (<a class="el" href="structpcl_1_1_s_v_m_param.html">SVMParam</a> param)</td></tr>
<tr class="memdesc:ac032e2dc6d89909d72aebc5cb46806f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Change default training parameters (<a class="el" href="structpcl_1_1_s_v_m_param.html" title="The structure stores the parameters for the classificationa nd must be initialized and passed to the ...">pcl::SVMParam</a>). <br /></td></tr>
<tr class="separator:ac032e2dc6d89909d72aebc5cb46806f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af70b307e8b0d305325380e49349c9158"><td class="memItemLeft" align="right" valign="top"><a id="af70b307e8b0d305325380e49349c9158"></a>
<a class="el" href="structpcl_1_1_s_v_m_param.html">SVMParam</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m_train.html#af70b307e8b0d305325380e49349c9158">getParameters</a> ()</td></tr>
<tr class="memdesc:af70b307e8b0d305325380e49349c9158"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the current training parameters. <br /></td></tr>
<tr class="separator:af70b307e8b0d305325380e49349c9158"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a74a008298d1d42571b181c0383416010"><td class="memItemLeft" align="right" valign="top"><a id="a74a008298d1d42571b181c0383416010"></a>
<a class="el" href="structpcl_1_1_s_v_m_model.html">SVMModel</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m_train.html#a74a008298d1d42571b181c0383416010">getClassifierModel</a> ()</td></tr>
<tr class="memdesc:a74a008298d1d42571b181c0383416010"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the result of the training. <br /></td></tr>
<tr class="separator:a74a008298d1d42571b181c0383416010"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a83f2a5e13dd354bd0fdaab63eebc1eea"><td class="memItemLeft" align="right" valign="top"><a id="a83f2a5e13dd354bd0fdaab63eebc1eea"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m_train.html#a83f2a5e13dd354bd0fdaab63eebc1eea">setInputTrainingSet</a> (std::vector&lt; <a class="el" href="structpcl_1_1_s_v_m_data.html">SVMData</a> &gt; training_set)</td></tr>
<tr class="memdesc:a83f2a5e13dd354bd0fdaab63eebc1eea"><td class="mdescLeft">&#160;</td><td class="mdescRight">It adds/store the training set with labelled data. <br /></td></tr>
<tr class="separator:a83f2a5e13dd354bd0fdaab63eebc1eea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9937510055076d410ebb80def036e020"><td class="memItemLeft" align="right" valign="top"><a id="a9937510055076d410ebb80def036e020"></a>
std::vector&lt; <a class="el" href="structpcl_1_1_s_v_m_data.html">SVMData</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m_train.html#a9937510055076d410ebb80def036e020">getInputTrainingSet</a> ()</td></tr>
<tr class="memdesc:a9937510055076d410ebb80def036e020"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the current training set. <br /></td></tr>
<tr class="separator:a9937510055076d410ebb80def036e020"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3656dabad7ef92656ccfd319657ee392"><td class="memItemLeft" align="right" valign="top"><a id="a3656dabad7ef92656ccfd319657ee392"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m_train.html#a3656dabad7ef92656ccfd319657ee392">resetTrainingSet</a> ()</td></tr>
<tr class="memdesc:a3656dabad7ef92656ccfd319657ee392"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reset the training set. <br /></td></tr>
<tr class="separator:a3656dabad7ef92656ccfd319657ee392"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab860aa193b6775d19bc97ec3d8bedf8f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m_train.html#ab860aa193b6775d19bc97ec3d8bedf8f">trainClassifier</a> ()</td></tr>
<tr class="memdesc:ab860aa193b6775d19bc97ec3d8bedf8f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Start the training of the <a class="el" href="classpcl_1_1_s_v_m.html" title="Base class for SVM SVM (Support Vector Machines).">SVM</a> classifier.  <a href="classpcl_1_1_s_v_m_train.html#ab860aa193b6775d19bc97ec3d8bedf8f">更多...</a><br /></td></tr>
<tr class="separator:ab860aa193b6775d19bc97ec3d8bedf8f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a910cc9a619fd9f4c28e1af99f28aa002"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m_train.html#a910cc9a619fd9f4c28e1af99f28aa002">loadProblem</a> (const char *filename)</td></tr>
<tr class="memdesc:a910cc9a619fd9f4c28e1af99f28aa002"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read in a problem (in svmlight format).  <a href="classpcl_1_1_s_v_m_train.html#a910cc9a619fd9f4c28e1af99f28aa002">更多...</a><br /></td></tr>
<tr class="separator:a910cc9a619fd9f4c28e1af99f28aa002"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab9959f5e2ee6c39ac14ed8e09b6afc98"><td class="memItemLeft" align="right" valign="top"><a id="ab9959f5e2ee6c39ac14ed8e09b6afc98"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m_train.html#ab9959f5e2ee6c39ac14ed8e09b6afc98">setDebugMode</a> (bool in)</td></tr>
<tr class="memdesc:ab9959f5e2ee6c39ac14ed8e09b6afc98"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set to 1 for debugging info. <br /></td></tr>
<tr class="separator:ab9959f5e2ee6c39ac14ed8e09b6afc98"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9fc90b124c8c72e8c82e9d0657a8d22e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m_train.html#a9fc90b124c8c72e8c82e9d0657a8d22e">saveTrainingSet</a> (const char *filename)</td></tr>
<tr class="memdesc:a9fc90b124c8c72e8c82e9d0657a8d22e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Save the raw training set in a file (in svmlight format).  <a href="classpcl_1_1_s_v_m_train.html#a9fc90b124c8c72e8c82e9d0657a8d22e">更多...</a><br /></td></tr>
<tr class="separator:a9fc90b124c8c72e8c82e9d0657a8d22e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a993cd35745435d46b54597846a03005a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m_train.html#a993cd35745435d46b54597846a03005a">saveNormTrainingSet</a> (const char *filename)</td></tr>
<tr class="memdesc:a993cd35745435d46b54597846a03005a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Save the normalized training set in a file (in svmlight format).  <a href="classpcl_1_1_s_v_m_train.html#a993cd35745435d46b54597846a03005a">更多...</a><br /></td></tr>
<tr class="separator:a993cd35745435d46b54597846a03005a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classpcl_1_1_s_v_m"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classpcl_1_1_s_v_m')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classpcl_1_1_s_v_m.html">pcl::SVM</a></td></tr>
<tr class="memitem:acf652ea11ea0c106b1cbbce00554185c inherit pub_methods_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="acf652ea11ea0c106b1cbbce00554185c"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m.html#acf652ea11ea0c106b1cbbce00554185c">SVM</a> ()</td></tr>
<tr class="memdesc:acf652ea11ea0c106b1cbbce00554185c inherit pub_methods_classpcl_1_1_s_v_m"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
<tr class="separator:acf652ea11ea0c106b1cbbce00554185c inherit pub_methods_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1bb58c6d4ea4cc0bef4343371da4307 inherit pub_methods_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="aa1bb58c6d4ea4cc0bef4343371da4307"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m.html#aa1bb58c6d4ea4cc0bef4343371da4307">~SVM</a> ()</td></tr>
<tr class="memdesc:aa1bb58c6d4ea4cc0bef4343371da4307 inherit pub_methods_classpcl_1_1_s_v_m"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:aa1bb58c6d4ea4cc0bef4343371da4307 inherit pub_methods_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc4bad66d55915dd09977192ab8311b5 inherit pub_methods_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="acc4bad66d55915dd09977192ab8311b5"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m.html#acc4bad66d55915dd09977192ab8311b5">getLabel</a> (std::vector&lt; int &gt; &amp;labels)</td></tr>
<tr class="memdesc:acc4bad66d55915dd09977192ab8311b5 inherit pub_methods_classpcl_1_1_s_v_m"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the labels order from the classifier model. <br /></td></tr>
<tr class="separator:acc4bad66d55915dd09977192ab8311b5 inherit pub_methods_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f59b5f036691d050e7d1b8845083732 inherit pub_methods_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="a3f59b5f036691d050e7d1b8845083732"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m.html#a3f59b5f036691d050e7d1b8845083732">saveClassifierModel</a> (const char *filename)</td></tr>
<tr class="memdesc:a3f59b5f036691d050e7d1b8845083732 inherit pub_methods_classpcl_1_1_s_v_m"><td class="mdescLeft">&#160;</td><td class="mdescRight">Save the classifier model in an extern file (in svmlight format). <br /></td></tr>
<tr class="separator:a3f59b5f036691d050e7d1b8845083732 inherit pub_methods_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:a187c6e44967d05ad37ecee814ff04a41"><td class="memItemLeft" align="right" valign="top"><a id="a187c6e44967d05ad37ecee814ff04a41"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m_train.html#a187c6e44967d05ad37ecee814ff04a41">doCrossValidation</a> ()</td></tr>
<tr class="memdesc:a187c6e44967d05ad37ecee814ff04a41"><td class="mdescLeft">&#160;</td><td class="mdescRight">To cross validate the classifier. It is automatic for probability estimate. <br /></td></tr>
<tr class="separator:a187c6e44967d05ad37ecee814ff04a41"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab996f6bdd3ac6565558722f493c75e67"><td class="memItemLeft" align="right" valign="top"><a id="ab996f6bdd3ac6565558722f493c75e67"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m_train.html#ab996f6bdd3ac6565558722f493c75e67">scaleFactors</a> (std::vector&lt; <a class="el" href="structpcl_1_1_s_v_m_data.html">SVMData</a> &gt; training_set, <a class="el" href="structsvm__scaling.html">svm_scaling</a> &amp;scaling)</td></tr>
<tr class="memdesc:ab996f6bdd3ac6565558722f493c75e67"><td class="mdescLeft">&#160;</td><td class="mdescRight">It extracts scaling factors from the input training_set. The scaling of the training_set is a mandatory for a good training of the classifier. <br /></td></tr>
<tr class="separator:ab996f6bdd3ac6565558722f493c75e67"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_classpcl_1_1_s_v_m"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classpcl_1_1_s_v_m')"><img src="closed.png" alt="-"/>&#160;Protected 成员函数 继承自 <a class="el" href="classpcl_1_1_s_v_m.html">pcl::SVM</a></td></tr>
<tr class="memitem:a25c695eb4d94ac665b2ecccb4497aa85 inherit pro_methods_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="a25c695eb4d94ac665b2ecccb4497aa85"></a>
char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m.html#a25c695eb4d94ac665b2ecccb4497aa85">readline</a> (FILE *input)</td></tr>
<tr class="memdesc:a25c695eb4d94ac665b2ecccb4497aa85 inherit pro_methods_classpcl_1_1_s_v_m"><td class="mdescLeft">&#160;</td><td class="mdescRight">To read a line from the input file. Stored in "line_". <br /></td></tr>
<tr class="separator:a25c695eb4d94ac665b2ecccb4497aa85 inherit pro_methods_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae13d89577f55fcff9a570ccf77ee9e37 inherit pro_methods_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="ae13d89577f55fcff9a570ccf77ee9e37"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m.html#ae13d89577f55fcff9a570ccf77ee9e37">exitInputError</a> (int line_num)</td></tr>
<tr class="memdesc:ae13d89577f55fcff9a570ccf77ee9e37 inherit pro_methods_classpcl_1_1_s_v_m"><td class="mdescLeft">&#160;</td><td class="mdescRight">Outputs an error in file reading. <br /></td></tr>
<tr class="separator:ae13d89577f55fcff9a570ccf77ee9e37 inherit pro_methods_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42bf58b7fe08d473a2f4a595ded0fb4b inherit pro_methods_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="a42bf58b7fe08d473a2f4a595ded0fb4b"></a>
const std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m.html#a42bf58b7fe08d473a2f4a595ded0fb4b">getClassName</a> () const</td></tr>
<tr class="memdesc:a42bf58b7fe08d473a2f4a595ded0fb4b inherit pro_methods_classpcl_1_1_s_v_m"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a string representation of the name of this class. <br /></td></tr>
<tr class="separator:a42bf58b7fe08d473a2f4a595ded0fb4b inherit pro_methods_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab9110ca99ee2fa34573133fe4a083fe2 inherit pro_methods_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="ab9110ca99ee2fa34573133fe4a083fe2"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m.html#ab9110ca99ee2fa34573133fe4a083fe2">adaptInputToLibSVM</a> (std::vector&lt; <a class="el" href="structpcl_1_1_s_v_m_data.html">SVMData</a> &gt; training_set, <a class="el" href="structsvm__problem.html">svm_problem</a> &amp;prob)</td></tr>
<tr class="memdesc:ab9110ca99ee2fa34573133fe4a083fe2 inherit pro_methods_classpcl_1_1_s_v_m"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert the input format (vector of <a class="el" href="structpcl_1_1_s_v_m_data.html" title="The structure stores the features and the label of a single sample which has to be used for the train...">SVMData</a>) into a readable format for libSVM. <br /></td></tr>
<tr class="separator:ab9110ca99ee2fa34573133fe4a083fe2 inherit pro_methods_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8e2c4441d6288270bdf7c36f4c4bbb2 inherit pro_methods_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="ad8e2c4441d6288270bdf7c36f4c4bbb2"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m.html#ad8e2c4441d6288270bdf7c36f4c4bbb2">adaptLibSVMToInput</a> (std::vector&lt; <a class="el" href="structpcl_1_1_s_v_m_data.html">SVMData</a> &gt; &amp;training_set, <a class="el" href="structsvm__problem.html">svm_problem</a> prob)</td></tr>
<tr class="memdesc:ad8e2c4441d6288270bdf7c36f4c4bbb2 inherit pro_methods_classpcl_1_1_s_v_m"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert the libSVM format (<a class="el" href="structsvm__problem.html">svm_problem</a>) into a easier output format. <br /></td></tr>
<tr class="separator:ad8e2c4441d6288270bdf7c36f4c4bbb2 inherit pro_methods_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ec65c97223faf337970f834f304746f inherit pro_methods_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="a0ec65c97223faf337970f834f304746f"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m.html#a0ec65c97223faf337970f834f304746f">loadProblem</a> (const char *filename, <a class="el" href="structsvm__problem.html">svm_problem</a> &amp;prob)</td></tr>
<tr class="memdesc:a0ec65c97223faf337970f834f304746f inherit pro_methods_classpcl_1_1_s_v_m"><td class="mdescLeft">&#160;</td><td class="mdescRight">Load a problem from an extern file. <br /></td></tr>
<tr class="separator:a0ec65c97223faf337970f834f304746f inherit pro_methods_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac256c5efa13d6759dfc6e77e17eae4e6 inherit pro_methods_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="ac256c5efa13d6759dfc6e77e17eae4e6"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m.html#ac256c5efa13d6759dfc6e77e17eae4e6">saveProblem</a> (const char *filename, bool labelled)</td></tr>
<tr class="memdesc:ac256c5efa13d6759dfc6e77e17eae4e6 inherit pro_methods_classpcl_1_1_s_v_m"><td class="mdescLeft">&#160;</td><td class="mdescRight">Save the raw problem in an extern file. <br /></td></tr>
<tr class="separator:ac256c5efa13d6759dfc6e77e17eae4e6 inherit pro_methods_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae604dbc0d535f8b0064b95cac1a15895 inherit pro_methods_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="ae604dbc0d535f8b0064b95cac1a15895"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m.html#ae604dbc0d535f8b0064b95cac1a15895">saveProblemNorm</a> (const char *filename, <a class="el" href="structsvm__problem.html">svm_problem</a> prob_, bool labelled)</td></tr>
<tr class="memdesc:ae604dbc0d535f8b0064b95cac1a15895 inherit pro_methods_classpcl_1_1_s_v_m"><td class="mdescLeft">&#160;</td><td class="mdescRight">Save the problem (with normalized values) in an extern file. <br /></td></tr>
<tr class="separator:ae604dbc0d535f8b0064b95cac1a15895 inherit pro_methods_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected 属性</h2></td></tr>
<tr class="memitem:a79cd040923f29218d1439beca44567f9"><td class="memItemLeft" align="right" valign="top"><a id="a79cd040923f29218d1439beca44567f9"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>debug_</b></td></tr>
<tr class="separator:a79cd040923f29218d1439beca44567f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ba57443a16d3acda98b65ec845812d9"><td class="memItemLeft" align="right" valign="top"><a id="a5ba57443a16d3acda98b65ec845812d9"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>cross_validation_</b></td></tr>
<tr class="separator:a5ba57443a16d3acda98b65ec845812d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af3f31a62a1d874a16b52b48f0d1f7bb1"><td class="memItemLeft" align="right" valign="top"><a id="af3f31a62a1d874a16b52b48f0d1f7bb1"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>nr_fold_</b></td></tr>
<tr class="separator:af3f31a62a1d874a16b52b48f0d1f7bb1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6bb65a7b07c50941541328e63901f96d"><td class="memItemLeft" align="right" valign="top"><a id="a6bb65a7b07c50941541328e63901f96d"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>labelled_training_set_</b></td></tr>
<tr class="separator:a6bb65a7b07c50941541328e63901f96d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e12dd4f830021cddc47784c5bbf1372"><td class="memItemLeft" align="right" valign="top"><a id="a0e12dd4f830021cddc47784c5bbf1372"></a>
<a class="el" href="structpcl_1_1_s_v_m_model.html">SVMModel</a>&#160;</td><td class="memItemRight" valign="bottom"><b>model_</b></td></tr>
<tr class="separator:a0e12dd4f830021cddc47784c5bbf1372"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f9d24c5f4974b0a3b0b1fbb85383bc5"><td class="memItemLeft" align="right" valign="top"><a id="a4f9d24c5f4974b0a3b0b1fbb85383bc5"></a>
char *&#160;</td><td class="memItemRight" valign="bottom"><b>line_</b></td></tr>
<tr class="separator:a4f9d24c5f4974b0a3b0b1fbb85383bc5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4bb878e7f0ce22bfd287b2bb5d90e0b4"><td class="memItemLeft" align="right" valign="top"><a id="a4bb878e7f0ce22bfd287b2bb5d90e0b4"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>max_line_len_</b></td></tr>
<tr class="separator:a4bb878e7f0ce22bfd287b2bb5d90e0b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae5613f4a7e5c16048d574b82777aa6c0"><td class="memItemLeft" align="right" valign="top"><a id="ae5613f4a7e5c16048d574b82777aa6c0"></a>
std::vector&lt; <a class="el" href="structpcl_1_1_s_v_m_data.html">SVMData</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>training_set_</b></td></tr>
<tr class="separator:ae5613f4a7e5c16048d574b82777aa6c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0254a960defb5bfdf6c2881d4161671"><td class="memItemLeft" align="right" valign="top"><a id="ae0254a960defb5bfdf6c2881d4161671"></a>
<a class="el" href="structsvm__problem.html">svm_problem</a>&#160;</td><td class="memItemRight" valign="bottom"><b>prob_</b></td></tr>
<tr class="separator:ae0254a960defb5bfdf6c2881d4161671"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad70eb2297758546dcb90305b9eae72f2"><td class="memItemLeft" align="right" valign="top"><a id="ad70eb2297758546dcb90305b9eae72f2"></a>
<a class="el" href="structsvm__scaling.html">svm_scaling</a>&#160;</td><td class="memItemRight" valign="bottom"><b>scaling_</b></td></tr>
<tr class="separator:ad70eb2297758546dcb90305b9eae72f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add0ef11f557841224ce3d7bb5997a332"><td class="memItemLeft" align="right" valign="top"><a id="add0ef11f557841224ce3d7bb5997a332"></a>
<a class="el" href="structpcl_1_1_s_v_m_param.html">SVMParam</a>&#160;</td><td class="memItemRight" valign="bottom"><b>param_</b></td></tr>
<tr class="separator:add0ef11f557841224ce3d7bb5997a332"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac03b37af785e13ad213af8f870a3b7db"><td class="memItemLeft" align="right" valign="top"><a id="ac03b37af785e13ad213af8f870a3b7db"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>class_name_</b></td></tr>
<tr class="separator:ac03b37af785e13ad213af8f870a3b7db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_classpcl_1_1_s_v_m"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classpcl_1_1_s_v_m')"><img src="closed.png" alt="-"/>&#160;Protected 属性 继承自 <a class="el" href="classpcl_1_1_s_v_m.html">pcl::SVM</a></td></tr>
<tr class="memitem:ae5613f4a7e5c16048d574b82777aa6c0 inherit pro_attribs_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="ae5613f4a7e5c16048d574b82777aa6c0"></a>
std::vector&lt; <a class="el" href="structpcl_1_1_s_v_m_data.html">SVMData</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>training_set_</b></td></tr>
<tr class="separator:ae5613f4a7e5c16048d574b82777aa6c0 inherit pro_attribs_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0254a960defb5bfdf6c2881d4161671 inherit pro_attribs_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="ae0254a960defb5bfdf6c2881d4161671"></a>
<a class="el" href="structsvm__problem.html">svm_problem</a>&#160;</td><td class="memItemRight" valign="bottom"><b>prob_</b></td></tr>
<tr class="separator:ae0254a960defb5bfdf6c2881d4161671 inherit pro_attribs_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e12dd4f830021cddc47784c5bbf1372 inherit pro_attribs_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="a0e12dd4f830021cddc47784c5bbf1372"></a>
<a class="el" href="structpcl_1_1_s_v_m_model.html">SVMModel</a>&#160;</td><td class="memItemRight" valign="bottom"><b>model_</b></td></tr>
<tr class="separator:a0e12dd4f830021cddc47784c5bbf1372 inherit pro_attribs_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad70eb2297758546dcb90305b9eae72f2 inherit pro_attribs_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="ad70eb2297758546dcb90305b9eae72f2"></a>
<a class="el" href="structsvm__scaling.html">svm_scaling</a>&#160;</td><td class="memItemRight" valign="bottom"><b>scaling_</b></td></tr>
<tr class="separator:ad70eb2297758546dcb90305b9eae72f2 inherit pro_attribs_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add0ef11f557841224ce3d7bb5997a332 inherit pro_attribs_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="add0ef11f557841224ce3d7bb5997a332"></a>
<a class="el" href="structpcl_1_1_s_v_m_param.html">SVMParam</a>&#160;</td><td class="memItemRight" valign="bottom"><b>param_</b></td></tr>
<tr class="separator:add0ef11f557841224ce3d7bb5997a332 inherit pro_attribs_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac03b37af785e13ad213af8f870a3b7db inherit pro_attribs_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="ac03b37af785e13ad213af8f870a3b7db"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>class_name_</b></td></tr>
<tr class="separator:ac03b37af785e13ad213af8f870a3b7db inherit pro_attribs_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f9d24c5f4974b0a3b0b1fbb85383bc5 inherit pro_attribs_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="a4f9d24c5f4974b0a3b0b1fbb85383bc5"></a>
char *&#160;</td><td class="memItemRight" valign="bottom"><b>line_</b></td></tr>
<tr class="separator:a4f9d24c5f4974b0a3b0b1fbb85383bc5 inherit pro_attribs_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4bb878e7f0ce22bfd287b2bb5d90e0b4 inherit pro_attribs_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="a4bb878e7f0ce22bfd287b2bb5d90e0b4"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>max_line_len_</b></td></tr>
<tr class="separator:a4bb878e7f0ce22bfd287b2bb5d90e0b4 inherit pro_attribs_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6bb65a7b07c50941541328e63901f96d inherit pro_attribs_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="a6bb65a7b07c50941541328e63901f96d"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>labelled_training_set_</b></td></tr>
<tr class="separator:a6bb65a7b07c50941541328e63901f96d inherit pro_attribs_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
额外继承的成员函数</h2></td></tr>
<tr class="inherit_header pro_static_methods_classpcl_1_1_s_v_m"><td colspan="2" onclick="javascript:toggleInherit('pro_static_methods_classpcl_1_1_s_v_m')"><img src="closed.png" alt="-"/>&#160;静态 Protected 成员函数 继承自 <a class="el" href="classpcl_1_1_s_v_m.html">pcl::SVM</a></td></tr>
<tr class="memitem:af8b6779e2fbd5a636d79c5a8c77cf102 inherit pro_static_methods_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="af8b6779e2fbd5a636d79c5a8c77cf102"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m.html#af8b6779e2fbd5a636d79c5a8c77cf102">printNull</a> (const char *)</td></tr>
<tr class="memdesc:af8b6779e2fbd5a636d79c5a8c77cf102 inherit pro_static_methods_classpcl_1_1_s_v_m"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set for output printings during classification. <br /></td></tr>
<tr class="separator:af8b6779e2fbd5a636d79c5a8c77cf102 inherit pro_static_methods_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p><a class="el" href="classpcl_1_1_s_v_m.html" title="Base class for SVM SVM (Support Vector Machines).">SVM</a> (Support Vector Machines) training class for the <a class="el" href="classpcl_1_1_s_v_m.html" title="Base class for SVM SVM (Support Vector Machines).">SVM</a> machine learning. It creates a model for the classifier from a labelled input dataset. OPTIONAL: <a class="el" href="structpcl_1_1_s_v_m_param.html" title="The structure stores the parameters for the classificationa nd must be initialized and passed to the ...">pcl::SVMParam</a> has to be given as input to vary the default training method and parameters. </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a910cc9a619fd9f4c28e1af99f28aa002"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a910cc9a619fd9f4c28e1af99f28aa002">&#9670;&nbsp;</a></span>loadProblem()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool pcl::SVMTrain::loadProblem </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>filename</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Read in a problem (in svmlight format). </p>
<dl class="section return"><dt>返回</dt><dd>false if fails. </dd></dl>
<div class="fragment"><div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;      {</div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classpcl_1_1_s_v_m.html#a0ec65c97223faf337970f834f304746f">SVM::loadProblem</a> (filename, prob_);</div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;      };</div>
<div class="ttc" id="aclasspcl_1_1_s_v_m_html_a0ec65c97223faf337970f834f304746f"><div class="ttname"><a href="classpcl_1_1_s_v_m.html#a0ec65c97223faf337970f834f304746f">pcl::SVM::loadProblem</a></div><div class="ttdeci">bool loadProblem(const char *filename, svm_problem &amp;prob)</div><div class="ttdoc">Load a problem from an extern file.</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a993cd35745435d46b54597846a03005a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a993cd35745435d46b54597846a03005a">&#9670;&nbsp;</a></span>saveNormTrainingSet()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool pcl::SVMTrain::saveNormTrainingSet </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>filename</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Save the normalized training set in a file (in svmlight format). </p>
<dl class="section return"><dt>返回</dt><dd>false if fails. </dd></dl>
<div class="fragment"><div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;      {</div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classpcl_1_1_s_v_m.html#ae604dbc0d535f8b0064b95cac1a15895">SVM::saveProblemNorm</a> (filename, prob_, 1);</div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;      };</div>
<div class="ttc" id="aclasspcl_1_1_s_v_m_html_ae604dbc0d535f8b0064b95cac1a15895"><div class="ttname"><a href="classpcl_1_1_s_v_m.html#ae604dbc0d535f8b0064b95cac1a15895">pcl::SVM::saveProblemNorm</a></div><div class="ttdeci">bool saveProblemNorm(const char *filename, svm_problem prob_, bool labelled)</div><div class="ttdoc">Save the problem (with normalized values) in an extern file.</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a9fc90b124c8c72e8c82e9d0657a8d22e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9fc90b124c8c72e8c82e9d0657a8d22e">&#9670;&nbsp;</a></span>saveTrainingSet()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool pcl::SVMTrain::saveTrainingSet </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>filename</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Save the raw training set in a file (in svmlight format). </p>
<dl class="section return"><dt>返回</dt><dd>false if fails. </dd></dl>
<div class="fragment"><div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;      {</div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classpcl_1_1_s_v_m.html#ac256c5efa13d6759dfc6e77e17eae4e6">SVM::saveProblem</a> (filename, 1);</div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;      };</div>
<div class="ttc" id="aclasspcl_1_1_s_v_m_html_ac256c5efa13d6759dfc6e77e17eae4e6"><div class="ttname"><a href="classpcl_1_1_s_v_m.html#ac256c5efa13d6759dfc6e77e17eae4e6">pcl::SVM::saveProblem</a></div><div class="ttdeci">bool saveProblem(const char *filename, bool labelled)</div><div class="ttdoc">Save the raw problem in an extern file.</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="ab860aa193b6775d19bc97ec3d8bedf8f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab860aa193b6775d19bc97ec3d8bedf8f">&#9670;&nbsp;</a></span>trainClassifier()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool pcl::SVMTrain::trainClassifier </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Start the training of the <a class="el" href="classpcl_1_1_s_v_m.html" title="Base class for SVM SVM (Support Vector Machines).">SVM</a> classifier. </p>
<dl class="section return"><dt>返回</dt><dd>false if fails. </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>ml/include/pcl/ml/<a class="el" href="svm__wrapper_8h_source.html">svm_wrapper.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><a class="el" href="classpcl_1_1_s_v_m_train.html">SVMTrain</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
